package com.njbw.pojo.methodInject;

import java.util.Map;

/**
 * 长沙先飞信息科技有限公司<br>
 * Created with IntelliJ IDEA.<br>
 * Date:2025/7/28<br>
 * Time:15:56<br>
 * 功能描述：<br>
 *
 * @author huang hou chun
 * @since JDK 1.8 <br>
 * Copyright (c) 2023 www.csxfrj.com System Incorporated All Rights Reserved.
 */
public abstract class CommandManager2 {

    public Object process(Map commandState) {
        Command command = createCommand();
        command.setCommandState(commandState);
        return command.execute();
    }

    protected abstract Command createCommand();
}
